<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const a = {};
      const b = {
        __proto__: a,
      };
      const c = {
        __proto__: b,
      };
      const d = {
        __proto__: c,
      };
      console.log(d.__proto__ === c);
      console.log(c.__proto__ === b);
      console.log(b.__proto__ === a);
      console.log(a.__proto__ === Object.prototype);
      console.log(Object.prototype.__proto__); //null
    </script>
  </body>
</html>
